package com.guan.ordering_sys.generator.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 关远键
 * @since 2021-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Sale对象", description="")
public class Sale implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品销售编号")
    @TableId(value = "sale_id", type = IdType.AUTO)
    private Long saleId;

    @ApiModelProperty(value = "商品编号")
    private Long goodsId;

    @ApiModelProperty(value = "商品数量")
    private Integer quantity;

    @ApiModelProperty(value = "商品总价")
    private BigDecimal total;

    @ApiModelProperty(value = "销售状态：1成功2失败（退款）")
    private String saleStatus;

    @ApiModelProperty(value = "成功销售时填写订单编号，否则填写退货单号")
    private Long orderRefund;

    @ApiModelProperty(value = "年月日")
    private Date saleDate;

    @ApiModelProperty(value = "公司编号")
    private Integer companyId;

    @ApiModelProperty(value = "说明")
    private String explain;


}
